/**
 * Copyright (c) 2023 astevencui All rights reserved.
 * <p>
 * https://www.astevencui.com
 * <p>
 * 版权所有，侵权必究！
 */

package com.stud.business.stud.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobContext;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 取现定时任务
 *
 * @author Stud
 */
@Slf4j
@Component
public class JobHandler {

    /**
     * 任务示例
     */
    @XxlJob("studHandler")
    public ReturnT<String> studHandler() {
        XxlJobContext xxlJobContext = XxlJobContext.getXxlJobContext();
        String jobParam = xxlJobContext.getJobParam();
        log.info("参数：{}", jobParam);
        return ReturnT.SUCCESS;
    }
}
